home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / zipall12.zip / ZIPALL1T.BAT < prev    next >
DOS Batch File  |  1993-05-02  |  2KB  |  38 lines

  1. @echo off
  2. REM
  3. REM ZIPALL1T.BAT
  4. REM
  5. REM This BAT file can be executed from within any subdirectory to cause PKZIP
  6. REM to implode every file in the current directory BUT NOT IN ITS CHILD
  7. REM DIRECTORIES (if any) into a single file called ALLFILES.ZIP.  All the ori-
  8. REM ginal files are copied into the ZIP file, the affected directory retaining
  9. REM the original files.  Hidden and system files are zipped also.
  10. REM Attributes for Hidden, Read-only and System files are retained. 
  11. REM Use the "-Jhrs" switch when unzipping with PKUNZIP.EXE or just use 
  12. REM UNZIPALL.BAT if the file is on a machine containing the batch file.
  13. REM If you want to MOVE all affected files into ALLFILES.ZIP, use ZIPALL1.BAT
  14. REM instead.
  15. REM
  16. if not exist allfiles.zip goto continue
  17. cls
  18. dir /w
  19. echo.
  20. echo This subdirectory already contains an ALLFILES.ZIP.  Delete it, or rename
  21. echo it if you really want it to be contained within the new ALLFILES.ZIP.
  22. goto exit
  23. :continue
  24. pkzip allfiles *.* -ex -whs -Jhrs
  25. if errorlevel 1 goto errexit
  26. dir
  27. echo ALLFILES.ZIP has been successfully created and original files retained.
  28. echo Use PKUNZIP.EXE with the "-Jhrs" switch to unzip -- this is necessary 
  29. echo to retain file attributes of Hidden, Read-only and System files.
  30. echo If you convert this .ZIP file to a .EXE using ZIP2EXE.EXE, you must remember
  31. echo to use the same "-Jhrs" switch when the self-extracting ALLFILES.EXE  
  32. echo is executed (ie:  "ALLFILES -Jhrs").
  33. goto exit
  34. :errexit
  35. echo Error in execution of PKZIP (via ZIPALL1T.BAT).
  36. :exit
  37. echo on
  38.